package cn.wbu.zyh.mapper;

import cn.wbu.zyh.dto.AnnotationPageQueryDTO;
import cn.wbu.zyh.dto.ArticleDTO;
import cn.wbu.zyh.entity.Annotation;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AnnotationMapper {
    Page<Annotation> pageQueryByNoteId(AnnotationPageQueryDTO annotationPageQueryDTO);

    void insertAnnotationsBatch(List<Annotation> annotations);

    List<Annotation> getByNoteId(Long id);

    void deleteByArticleId(Long articleId);

}
